-
Notifications
You must be signed in to change notification settings - Fork 39
840 course career path(connects #840) #882
base: dev
Are you sure you want to change the base?
Conversation
| console.log("before") | ||
| return a > b ? 1 : a < b ? -1 : 0; | ||
| }, | ||
| /*comparator: function(model) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this code if not used
| } | ||
| }) | ||
| console.log(career) | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove extra line
| }, | ||
| }, | ||
|
|
||
| initialize: function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this function if nothing is in it.
| this.vars.Courseid = arrCourseIds | ||
| this.vars.Course_Length = this.collection.models.length-1 | ||
| this.$el.html(_.template(this.template,this.vars)) | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove extra line
| $(function(){ | ||
| App.Views.CareersPathTable = Backbone.View.extend({ | ||
| addOne: function(model) { | ||
| //console.log(model) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove code if not used
| this.renderView(model) | ||
| // } | ||
| }, | ||
| renderView: function(model) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove function and code if not used
databases/multicoursecareerpath.js
Outdated
| @@ -0,0 +1,24 @@ | |||
| var couchapp = require('couchapp'), | |||
| path = require('path'); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix indentation
databases/coursecareerpath.js
Outdated
| @@ -0,0 +1,31 @@ | |||
| var couchapp = require('couchapp'), | |||
| path = require('path'); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix indentation
lmmrssa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lot of extra line and unused function. Please clean those
app/MyApp/index.html
Outdated
| </table> | ||
|
|
||
| </div> | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove extra line
app/MyApp/app/Router.js
Outdated
| CareerPath.fetch({ | ||
| async:false | ||
| }); | ||
| console.log(CareerPath) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think comments are not needed here .
| courseCareer.set('requiredCareerPathIds',selectedCareerIds); | ||
| courseCareer.save(null, { | ||
| success: function(response){ | ||
| location.reload(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation need to be fix.
| }) | ||
| location.reload(); | ||
| } else { | ||
| $('#LCourse option:selected').each(function(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation problem
| } | ||
| }, | ||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra line should be remove.
| }, | ||
|
|
||
| initialize: function() { | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra line should be remove.
| }, | ||
|
|
||
| initialize: function() { | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra line
app/MyApp/index.html
Outdated
| <script src="app/views/CareerDetailView.js"></script> <!-- app/views.js --> | ||
| <!-- <script src="app/views/CareerPathTable.js"></script> --><!-- app/views.js --> | ||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra line
app/MyApp/index.html
Outdated
| <% } %> | ||
| </tbody> | ||
| </table> | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra line
app/MyApp/index.html
Outdated
| </table> | ||
|
|
||
| </div> | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra line
app/MyApp/index.html
Outdated
| </tr> | ||
| <%}%> | ||
| </table> | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra line
No description provided.